package com.yikome.order.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "o_order_ext", indexes = {@Index(columnList = "orderCode") , @Index(columnList = "shopId")})
public class OrderExt implements Serializable {

	private static final long serialVersionUID = 5535553915504212159L;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	
	private Long id;
	
	private String orderCode ; 
	
	private Long shopId ;
	
	private String shopName ;
	
	private String pixelId ; 
	
	private String affiliate ; 
	
	private Long adlk ; 
	
	private String ip ; 
	
	private String ipInfo ;
	
	// 针对优惠信息
	@Column(length=2000, unique = true)
	private String promotions ;
}
